<?php namespace App\Http\Controllers;

use App\District;
use App\Fields;
use App\Phases;
use App\Roles;

class InstallController extends Controller
{
    public function setFields()
    {
        $field = Fields::firstOrCreate(['field'=>'移动互联网']);
        $field = Fields::firstOrCreate(['field'=>'在线教育']);
        $field = Fields::firstOrCreate(['field'=>'互联网金融']);
        $field = Fields::firstOrCreate(['field'=>'房产服务']);
        $field = Fields::firstOrCreate(['field'=>'医疗健康']);
        $field = Fields::firstOrCreate(['field'=>'旅游信息']);
        $field = Fields::firstOrCreate(['field'=>'本地生活']);
        $field = Fields::firstOrCreate(['field'=>'游戏竞技']);
        $field = Fields::firstOrCreate(['field'=>'广告营销']);
        $field = Fields::firstOrCreate(['field'=>'智能硬件']);
        $field = Fields::firstOrCreate(['field'=>'企业服务']);
        $field = Fields::firstOrCreate(['field'=>'电子商务']);
        $field = Fields::firstOrCreate(['field'=>'工具软件']);
        $field = Fields::firstOrCreate(['field'=>'文化娱乐体育']);
        $field = Fields::firstOrCreate(['field'=>'其它']);

        echo $field;
    }

    public function setPhase()
    {
        $field = Phases::firstOrCreate(['phase'=>'种子轮']);
        $field = Phases::firstOrCreate(['phase'=>'天使轮']);
        $field = Phases::firstOrCreate(['phase'=>'A轮']);
        $field = Phases::firstOrCreate(['phase'=>'B轮']);
        $field = Phases::firstOrCreate(['phase'=>'C轮']);
        $field = Phases::firstOrCreate(['phase'=>'D轮']);
        $field = Phases::firstOrCreate(['phase'=>'E轮']);

        echo $field;
    }

    public function setDistrict()
    {
        $dist = District::firstOrCreate(['dist_name'=>'北京']);
        $dist = District::firstOrCreate(['dist_name'=>'上海']);
        $dist = District::firstOrCreate(['dist_name'=>'广东']);
        $dist = District::firstOrCreate(['dist_name'=>'浙江']);
        $dist = District::firstOrCreate(['dist_name'=>'江苏']);
        $dist = District::firstOrCreate(['dist_name'=>'四川']);
        $dist = District::firstOrCreate(['dist_name'=>'福建']);
        $dist = District::firstOrCreate(['dist_name'=>'湖北']);
        $dist = District::firstOrCreate(['dist_name'=>'山东']);
        $dist = District::firstOrCreate(['dist_name'=>'陕西']);
        $dist = District::firstOrCreate(['dist_name'=>'湖南']);
        $dist = District::firstOrCreate(['dist_name'=>'重庆']);
        $dist = District::firstOrCreate(['dist_name'=>'河南']);
        $dist = District::firstOrCreate(['dist_name'=>'天津']);
        $dist = District::firstOrCreate(['dist_name'=>'辽宁']);
        $dist = District::firstOrCreate(['dist_name'=>'安徽']);
        $dist = District::firstOrCreate(['dist_name'=>'河北']);
        $dist = District::firstOrCreate(['dist_name'=>'广西']);
        $dist = District::firstOrCreate(['dist_name'=>'江西']);
        $dist = District::firstOrCreate(['dist_name'=>'贵州']);
        $dist = District::firstOrCreate(['dist_name'=>'云南']);
        $dist = District::firstOrCreate(['dist_name'=>'黑龙江']);
        $dist = District::firstOrCreate(['dist_name'=>'海南']);
        $dist = District::firstOrCreate(['dist_name'=>'山西']);
        $dist = District::firstOrCreate(['dist_name'=>'内蒙古']);
        $dist = District::firstOrCreate(['dist_name'=>'甘肃']);
        $dist = District::firstOrCreate(['dist_name'=>'吉林']);
        $dist = District::firstOrCreate(['dist_name'=>'新疆']);
        $dist = District::firstOrCreate(['dist_name'=>'西藏']);
        $dist = District::firstOrCreate(['dist_name'=>'宁夏']);
        $dist = District::firstOrCreate(['dist_name'=>'青海']);
        $dist = District::firstOrCreate(['dist_name'=>'香港']);
        $dist = District::firstOrCreate(['dist_name'=>'澳门']);
        $dist = District::firstOrCreate(['dist_name'=>'台湾']);
        $dist = District::firstOrCreate(['dist_name'=>'国外']);


        echo $dist;
    }

    public function setRoles(){
        $role = Roles::firstOrCreate(['role'=>'设计师']);
        $role = Roles::firstOrCreate(['role'=>'市场销信']);
        $role = Roles::firstOrCreate(['role'=>'媒体公关']);
        $role = Roles::firstOrCreate(['role'=>'学生创业']);
        $role = Roles::firstOrCreate(['role'=>'DB运营']);
        $role = Roles::firstOrCreate(['role'=>'财务法务']);
        $role = Roles::firstOrCreate(['role'=>'政府部门']);
        $role = Roles::firstOrCreate(['role'=>'人力资源']);
        $role = Roles::firstOrCreate(['role'=>'天使投资人']);
        $role = Roles::firstOrCreate(['role'=>'顾问导师']);
        $role = Roles::firstOrCreate(['role'=>'产品经理']);
        $role = Roles::firstOrCreate(['role'=>'大学教师']);
        $role = Roles::firstOrCreate(['role'=>'首席技术总监']);
        $role = Roles::firstOrCreate(['role'=>'CEO']);
        $role = Roles::firstOrCreate(['role'=>'摄影师']);
        $role = Roles::firstOrCreate(['role'=>'其它']);

        echo $role;

    }
}